package com.celesea.auth.grade.v1.controller.resource;

import com.celesea.auth.grade.entity.Grade;

/**
 * @author JackYuan
 * @create 2017-10-26 23:45
 */
public class GradeResource {
    private String id;
    private String name;
    private Integer sort;

    public GradeResource(Grade entity) {
        this.id = entity.getId();
        this.name = entity.getName();
        this.sort= entity.getSort();
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
}
